import api from '@/utils/http.js';

// 分页查询资讯列表
export const newsSelectPage = async (params) => {
  return await api.get('/psychologicalNews/page', { params });
};

// 新增资讯
export const newsInsertOne = async (data) => {
  return await api.post('/psychologicalNews/add', data);
};

// 修改资讯
export const newsUpdateOne = async (data) => {
  return await api.put('/psychologicalNews/update', data);
};

// 删除资讯
export const newsDeleteOne = async (id) => {
  return await api.delete('/psychologicalNews/delete/' + id);
};
